﻿using ProsonUser.ProsonUserDTO;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using ProsonUser.IProsonUser;

namespace ProsonUser.IProsonUser
{
    public interface IUser: IApplicationService
    {

        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="id"></param>
        /// <param name="oldPsw"></param>
        /// <param name="newPsw"></param>
        /// <param name="reNewPsw"></param>
        /// <returns></returns>
        Task<int> GetPwd(int id, string oldPsw, string newPsw, string reNewPsw);
        //获取用户信息
        UserDTO GetUser(string userEmail);
        //注册
        Task<int> Roll(UserCreateDTO userDTO);
        //登录
        Task<int> ListUser(string userEmail, string userPwd);
        //修改用户信息
        Task<int> UpdateUser(UserDTO dto);
        

    }
}
